package com.sonic.dto.db.gateway;
// Generated 2009-03-27 12:32:54 by Hibernate Tools 3.2.2.GA


import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * MqtGatewayEvents generated by hbm2java
 */
@Entity
@Table(name="mqt_gateway_events"
    ,schema="public"
)
public class MqtGatewayEvents  implements java.io.Serializable {


     private int id;
     private String eventName;
     private Date eventCreateDate;
     private Set<MqtGatewayClients> mqtGatewayClientses = new HashSet<MqtGatewayClients>(0);

    public MqtGatewayEvents() {
    }

	
    public MqtGatewayEvents(int id, String eventName, Date eventCreateDate) {
        this.id = id;
        this.eventName = eventName;
        this.eventCreateDate = eventCreateDate;
    }
    public MqtGatewayEvents(int id, String eventName, Date eventCreateDate, Set<MqtGatewayClients> mqtGatewayClientses) {
       this.id = id;
       this.eventName = eventName;
       this.eventCreateDate = eventCreateDate;
       this.mqtGatewayClientses = mqtGatewayClientses;
    }
   
     @Id 
    
    @Column(name="id", unique=true, nullable=false)
    public int getId() {
        return this.id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    @Column(name="event_name", nullable=false, length=32)
    public String getEventName() {
        return this.eventName;
    }
    
    public void setEventName(String eventName) {
        this.eventName = eventName;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="event_create_date", nullable=false, length=13)
    public Date getEventCreateDate() {
        return this.eventCreateDate;
    }
    
    public void setEventCreateDate(Date eventCreateDate) {
        this.eventCreateDate = eventCreateDate;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="mqtGatewayEvents")
    public Set<MqtGatewayClients> getMqtGatewayClientses() {
        return this.mqtGatewayClientses;
    }
    
    public void setMqtGatewayClientses(Set<MqtGatewayClients> mqtGatewayClientses) {
        this.mqtGatewayClientses = mqtGatewayClientses;
    }




}


